//
//  CustomTextField.m
//  MIDI
//
//  Created by 90 on 15/8/31.
//  Copyright (c) 2015年 QXSX. All rights reserved.
//

#import "CustomTextField.h"
#import "AppConfig.h"

@implementation CustomTextField

-(void)setFont:(UIFont*)font Color:(UIColor*)color
{
    self.customFont = font;
    self.customColor = color;
}

- (void)drawPlaceholderInRect:(CGRect)rect
{
    if (self.customColor && self.customFont)
    {
        NSDictionary *attrsDictionary =
        @{NSForegroundColorAttributeName:self.customColor,
          NSFontAttributeName:self.customFont};
        
        [[self placeholder] drawInRect:rect withAttributes:attrsDictionary];
    }
}

@end
















